extends Control

func _process(delta):
	if (Input.is_action_pressed("ui_accept")):
		change_scenes("res://Scenes/levels/level_1.tscn")
	if (get_node("video").get_stream() == null):
		change_scenes("res://Scenes/levels/level_1.tscn")

func _ready():
	get_node("video").set_stream(null)
	get_node("video").play()
	set_process(true)

func change_scenes(next_scene):
	get_node("/root/global").goto_scene(next_scene)
